CKEDITOR.plugins.add('multiimage',
{
    init: function (editor) {
        var pluginName = 'multiimage';
        editor.ui.addButton('multiimage',
            {
                label: 'My New Plugin',
                command: 'OpenWindow',
                icon: CKEDITOR.plugins.getPath('multiimage') + 'folder_add_plus_filled-16.png'
            });
        var cmd = editor.addCommand('OpenWindow', { exec: openMyCKFinder });
    }
});
function openMyCKFinder(e) {
	
	// finder = new CKFinder();
	// finder.appendTo( "container" );
	CKFinder.popup( { height : '400' , 
		
	selectActionFunction:  function ( fileUrl, data ){
	
		console.log(fileUrl);
		console.log(data);
			CKEDITOR.instances.pos_content.insertHtml('<img src="'+fileUrl+'" alt=""/>');
		 }
	 } );

}